<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
		'id' => 'cash-form',
        'type' => 'horizontal',
		'htmlOptions' => array('enableClientValidation'=>true),
		//'htmlOptions' => array('enableClientValidation'=>true), 
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>
	
		<?php echo $form->dropDownListRow($model,'user_id', CHtml::listData(User::model()->findAll("roles NOT IN ('admin','encoder')"),'id','fullName'), array('prompt'=>'select user..')); ?>

		<?php echo $form->textFieldRow($model,'amount',array('size'=>10,'maxlength'=>10)); ?>

		<?php echo $form->datepickerRow($model,'donation_date',
										array('prepend' => '<i class="icon-calendar"></i>',
											  'options'=> array('format'=>'yyyy/mm/dd',
											   					'weekStart'=>1, 
											   					'showButtonPanel'=> true,
											   					'showAnim'=> 'fold',))); ?>

		<?php echo $form->dropDownListRow($model,'donation_status',$model->getStatus(), array('prompt'=>'select status..')); ?>
		
		<?php echo $form->textFieldRow($model,'receipt',array('size'=>45,'maxlength'=>45)); ?>

<div class="row">
		 <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'type'=>'info','label'=>'create','icon'=>'ok-circle white')); ?>
		 <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'reset', 'label'=>'cancel','icon'=>'remove-circle')); ?>
    </div>

<?php $this->endWidget(); ?>